import request from '@/utils/request'

// 查询入库单明细列表
export function listInStockBillDetail(query) {
  return request({
    url: '/inOutStock/inStockBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询入库单明细详细
export function getInStockBillDetail(id) {
  return request({
    url: '/inOutStock/inStockBillDetail/' + id,
    method: 'get'
  })
}

// 新增入库单明细
export function addInStockBillDetail(data) {
  return request({
    url: '/inOutStock/inStockBillDetail',
    method: 'post',
    data: data
  })
}

// 修改入库单明细
export function updateInStockBillDetail(data) {
  return request({
    url: '/inOutStock/inStockBillDetail',
    method: 'put',
    data: data
  })
}

// 删除入库单明细
export function delInStockBillDetail(id) {
  return request({
    url: '/inOutStock/inStockBillDetail/' + id,
    method: 'delete'
  })
}
